import {createRouter, createWebHistory,RouteRecordRaw} from 'vue-router';

const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        
        component: () => import( '../viwes/index.vue')
    },
    {
        path: '/users/:phone',
        name:"users",
        component: () => import( '../viwes/users.vue')
    }
]

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes
})

export default router